namespace Codeplus.Dhruvtaata.Web.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class ModifySubjects : DbMigration
    {
        public override void Up()
        {
            AlterColumn("dbo.Subjects", "ParentSubjectId", c => c.Int());
            AlterColumn("dbo.Subjects", "Name", c => c.String(unicode: false));
            CreateIndex("dbo.Subjects", "Name", unique: true);
        }
        
        public override void Down()
        {
            AlterColumn("dbo.Subjects", "ParentSubjectId", c => c.Int(nullable: false));
            AlterColumn("dbo.Subjects", "Name", c => c.String(unicode: true));
            DropIndex("dbo.Subjects", "Name");
        }
    }
}
